|
|
|
BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions |
The code written in this method will be executed when the host application displays the menu containing the command. From this method the interface extension can control how the menu item is shown.
Name | Description |
---|---|
CurrentObject |
The object (usually a document) on which the command is invoked. |
Host |
Reference to the host application. |
The command is available as an object with the properties listed below.
Caption
The text used for the command's menu item.
Checked
A check mark will be displayed in front of the command when this property is true.
Enabled
The command will be grayed out in the menus when this property is False.
Flags
Flags reserved for internal use.
Icon
Reference to the icon object displayed with the command in the Meridian Enterprise menus.
Name
Read-only property returning the internal name of the command.
Visible
The command will be hidden from the menu when this property is False.
Private Sub CreateWorkingCopy_OnExecute(ByVal CurrentObject As Object, ByVal Host As Object)
On Error GoTo error_handler
Dim dsg As AMUIExtension
Set dsg = Me
If dsg.DocumentDetails.IsUnderRevision Then
CreateWorkingCopy.Enabled = False
Else
CreateWorkingCopy.Enabled = True
End If
Exit Sub
error_handler:
MsgBox Err.Description
End Sub
Copyright © 2000-2012 BlueCielo ECM Solutions |